<?php 
echo doctype('xhtml1-trans');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Desirer</title>
		<?php 
		$meta = array('name' => 'Content-type', 'content' => 'text/html; charset=iso-8859-1', 'type' => 'equiv');
		echo meta($meta);
		echo link_tag(array('href' => 'css/style.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/jquery-ui-1.8.9.custom.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/nicetitle.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/anylinkcssmenu.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/fg.menu.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/menu.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/ui.jqgrid.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/humanmsg.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		?>
		<script src="<?= base_url();?>js/jquery-1.4.4.min.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/nicetitle.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/anylinkcssmenu.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/util.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/fg.menu.js" type="text/javascript"></script>
		<script src="<?= base_url(); ?>js/i18n/grid.locale-pt-br.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?= base_url();?>js/jquery.jqGrid.min.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/i18n/jquery-ui-i18n.js" type="text/javascript"></script>
		<script src="<?= base_url();?>js/humanmsg.js" type="text/javascript"></script>
		
		<script type="text/javascript">
			anylinkcssmenu.init("anchorclass");
		</script>
		<script type="text/javascript">    
	    $(function(){
	    	// BUTTONS
	    	$('.fg-button').hover(
	    		function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
	    		function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
	    	);
	    	// MENUS    	
			$('#menuCadastro').menu({
				content: $('#menuCadastro').next().html(),
				flyOut: true
			});
			$('#menuSeguranca').menu({
				content: $('#menuSeguranca').next().html(),
				flyOut: true
			});
	    });

		$(document).ready( function() {
			$("#divMenu").css('height','40px');
		});

		function showMsg(msg)
		{
			humanMsg.displayMsg(msg);
			return false;
		}
	</script>
	<script type="text/javascript">
		$.jgrid.no_legacy_api = true;
		$.jgrid.useJSON = true;
	</script>	
	</head>
<body>
	<div id="dialog-message" title="Alerta" style="display:none;"></div>
	<div id="dialog-confirm" title="Aten&ccedil;&atilde;o" style="display:none;">
		<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Deseja excluir permanentemente esse registro?</p>
	</div>
